package books4africa

//INTEGRATION TEST

import static org.junit.Assert.*
import org.junit.*

class DonorTests {

    void testPersistence(){
        //create a donor and save it in the database
        Donor test = new Donor(userID:"hullabaloo@gmail.net", password: "password", listOfCategories: null).save()
        
        Donor retrieved = Donor.findByUserID("hullabaloo@gmail.net");
        
        assertEquals(test, retrieved)
        
    }
}
